package cn.com.shopec.erp.purchase.dao;

import java.util.List;

import cn.com.shopec.erp.common.orm.IHibernateEntityDao;
import cn.com.shopec.erp.common.page.PageFinder;
import cn.com.shopec.erp.common.page.PageQuery;
import cn.com.shopec.erp.purchase.entity.PurchaseRequisitionProduct;
import cn.com.shopec.erp.purchase.entity.PurchaseReturnOrder;
import cn.com.shopec.erp.purchase.vo.PurchaseRequisitionProductVo;
import cn.com.shopec.erp.stock.vo.StockInVo;

/**
 * @ClassName: IPurchaseRequisitionProductDao
 * @Description: 请购单商品DAO接口
 * @author: gaoyaxiong
 * @date: 2013-5-21 下午18:14:13
 */
public interface IPurchaseRequisitionProductDao extends IHibernateEntityDao<PurchaseRequisitionProduct> {
	
	/**
     * 
     * @Title: updateBrand
     * @Description: 修改次品信息
     * @param brandVo
     * @return
     * @throws
     * @author: duhui
     * @date: 2013-5-26下午04:17:40
     */
	public boolean updatePurchaseOrder(PurchaseRequisitionProductVo list);
	
	
	/**
     * 
     * @Title: queryPurchaseList
     * @Description:查询采购单退货增加信息
     * @param brandVo
     * @return
     * @throws
     * @author: duhui
     * @date: 2013-5-26下午04:17:40
     */
	public List<PurchaseRequisitionProductVo> queryPurchaseList(Integer status, Integer pageCount, Integer pageSize);
	
	/**
     * 
     * @Title: queryPurchaseList
     * @Description:根据采购单和货品查询某个商品
     * @param brandVo
     * @return
     * @throws
     * @author: duhui
     * @date: 2013-5-26下午04:17:40
     */
	public List<PurchaseRequisitionProduct> queryPoNoPurchaseList(PurchaseReturnOrder purchase);


	/**
	 * 获取过期货品
	 * @param purchaseOrderVo
	 * @param pageQuery
	 * @return
	 */
	public PageFinder<PurchaseRequisitionProduct> purchaseOrderListToExpired(PurchaseRequisitionProduct purchaseRequisitionProduct, PageQuery pageQuery);
	

	/**
	 * 获取库存报警的货品
	 * @param purchaseOrderVo
	 * @param pageQuery
	 * @return
	 */
	public PageFinder<PurchaseRequisitionProduct> purchaseOrderListToInventoryAlarm(PurchaseRequisitionProduct purchaseRequisitionProduct, PageQuery pageQuery);
	
	
}
